﻿Imports DAO
Imports DTO

Public Class NhanVienBUS
    Public Function LayThongTinNhanVien(ByVal idNhanVien As String, ByVal matkhau As String) As DataTable
        Dim nvien As New DataTable()
        Dim nvienDAO As New NhanVienDAO()
        nvien = nvienDAO.LayThongTinNhanVien(idNhanVien, matkhau)
        Return nvien
    End Function

    Public Function ThemNhanVien(ByVal nvDTO As NhanVienDTO) As Integer
        Dim nvDAO As New NhanVienDAO()
        Return nvDAO.ThemNhanVien(nvDTO)
    End Function

    Public Function LayDanhSachNhanVien() As DataTable
        Dim nvien As New DataTable()
        Dim nvienDAO As New NhanVienDAO()
        nvien = nvienDAO.LayDanhSachNhanVien()
        Return nvien
    End Function
    Public Function Xoa(ByVal ID As Integer) As Integer
        Dim nvDAO As New NhanVienDAO()
        Return nvDAO.Xoa(ID)
    End Function

    Public Function KiemTraTonTaiNhanVien(ByVal nv As String) As DataTable
        Dim nvDAO As New NhanVienDAO()
        Return nvDAO.KiemTraTonTaiNhanVien(nv)
    End Function
End Class
